#ifndef wu_MOVIECUTMANAGER_H
#define wu_MOVIECUTMANAGER_H

#define MAX_MOVIES 1

#pragma once
#include "wuBase2dManager.h"
#include "wuMovieCut.h"



class wuMovieCutManager : public wuBase2dManager
{
    public:
        wuMovieCutManager();
        ~wuMovieCutManager();


		void setup(ofxBox2d * _box2d, int _vw, int _vh, string _filename);
        void update();
        bool action(ofImage *currImg, ofImage *bgImg, int action, int x_offset);
        void draw(bool pinta_bg=false, int offX=0);
        void drawSelected(bool pinta_bg=false, int offX=0);
        void clear(void);
		void Touch(int _x,int _y, int forceX=300, int forceY=0);
		void isTouched(int _x,int _y);
		void setThreshold(int _thres);

        wuMovieCut movies[MAX_MOVIES];

		int num_movies;

		int threshold;

		// box2d
        ofxBox2d * box2d;
		int vw, vh;

};
#endif

